package com.ushio.authservice.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

public class MyTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        //判断当前任务是创建盛情并且是create事件
        System.out.println("测试");
        if ("项目经理".equals(delegateTask.getName())&& "create".equals(delegateTask.getEventName())){
            delegateTask.setAssignee("张三");
        }


    }
}
